<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<c:if test="${not empty param.login_error}">
	<div id="error-div" class="errorBox">
		Login failed: <c:out value="${sessionScope.SPRING_SECURITY_LAST_EXCEPTION.message}"/>
	</div>
</c:if>

<div class="box">
	<form name='f' action='<c:url value='/j_spring_security_check'/>' method='POST'>
	 	<table>
		    <tr><td>Username:</td><td><input type='text' name='j_username' value=''></td></tr>
		    <tr><td>Password:</td><td><input type='password' name='j_password'/></td></tr>
		    <tr><td colspan='2'><input name="submit" type="submit" value="Login" class="button"/></td></tr>
	  	</table>
	</form>
</div>